TimePunch Holiday Service
CountryDto
This class contains the definition of a country.
| Datatype | Name | Description |
|---|---|---|
| Guid | Id | Unique ID of the country |
| String | Name | Name of the country, e.g. Deutschland |
| RegionDto[] | Regions | List of Regions that belongs to the country (e.g. Hessen) |
RegionDto
This class contains information about a region (for example, Hessen) and is embedded in a CountryDTO object.
| Datatype | Name | Description |
|---|---|---|
| Guid | Id | Unique ID of Region |
| String | Name | Name of the Region |
PublicHolidayDto
This class contains information about a public holiday.
| Datatype | Name | Description |
|---|---|---|
| Guid | CountryId | Unique ID of the Country |
| String | Country | Name of the country |
| Guid? | RegionId | Unique ID of the Region |
| String | Region | Name of the region |
| String | Name | Name of the public holiday |
| Int? | ValidSinceYear | Year since the holiday is valid |
| Int? | ValidUntilYear | Year until the holiday is valid |
| Bool | IsHalfDay | True, if it’s only a half day holiday |
| PublicHolidayType | PublicHolidayType | Type of the public holiday |
| DateTime | Date | Date of the public holiday |
| Bool | Reverse | True, indicates that the numbered holiday will be reversed. |
| Int | Number | Number that is used for counting when used in numbered holidays |
| DayOfWeek | Weekday | Weekday of the public holiday |
| PublicHolidayDto | ReferencedHoliday | Referenced holiday if the current holiday is dependend on it |
| string | ValidationInformation | Gets a string that defines when the holiday is valid |